package dice_machine

const (
	DcTotalNumbers = 100 //总区间
)

type input struct {
	choices    int    //选择范围
	betNum     int    //下注金额
	isRollDown bool   //低/高区间 [1-choices]/[choice-totalNumbers]
	tag        string //批次标识
}

type result struct {
	RollNum   int     //掷奖结果
	Odds      float64 //赔率
	IsReward  bool    //是否中奖
	RewardNum int     //中奖金额(算上本金)
}

type DiceGame struct {
	i *input
	R *result
}

type UserHandler interface {
	Check(inp *input) error
	ChangeBalance(inp *input, res *result) error
}

type batchResp struct {
	BatchAwardNum int `json:"batch_award_num"`
	BatchTimes    int `json:"batch_times"`
}
